#include <iostream>
using namespace std;


int main(int argc, char* argv[], char* env[])
{
    cout << argv[0] <<" begin running" << endl;
    cout << "命令行参数:" << endl;
    int i = 0;
    for(;argv[i];i++)
    {
        cout << i << " : " << argv[i] << endl;
    }

    cout << "环境变量参数:" << endl;
    i = 0;
    for(;env[i];i++)
    {
        cout << i << " : " << env[i] << endl;
    }
    cout << argv[0] << " stop running" << endl;

    //for(int i = 0; i < 10; i++)
    //{
    //    cout << "hello: " << i << endl;
    //}

    return 0;
}
